package cn.jn.lhm.order.client;

import cn.jn.lhm.utils.order.EduOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author LHM
 * @Tips 热爱每一天，奋斗每一天
 * @date 2020/6/15 - 20:41
 */
@Service
@FeignClient(value = "edu-service")
public interface EduOrderClient {

    /**
     * RPC远程调用
     * @param id 课程ID
     * @return EduOrder
     */
    @GetMapping("/course/front/get/course/info/order/{id}")
    public EduOrder getCourseInfoToOrder(@PathVariable("id")String id);
}
